<template>
  <div>
    会员
    <button @click="buyHandler">购买会员</button>
  </div>
</template>

<script>
import { mapActions } from 'vuex';
export default {
  name: 'Member',
   meta:{
    title:"会员",
    requireAuth:true
  },
  methods: {
     ...mapActions("login", ["changeMember"]),
    buyHandler() {
      this.changeMember(true)
    },
  },
}
</script>
